package com;

public class star {
	private int star;

	public int getStar() {
		return star;
	}

	public void setStar(int star) {
		this.star = star;
	}

	public void s() {
		for(int i=1;i<=star;i++) {
			for(int j=1;j<=star-i;j++) {
				System.out.print(" ");
			}
			
			for(int j=1;j<=2*i-1;j++) {
				System.out.print("*");
			}
	
			System.out.println();
		}
	}
}
